import request from '@/utils/request'

// 查询物料采购属性变更列表
export function listItemMatch(query) {
  return request({
    url: '/project/itemMatch/list',
    method: 'get',
    params: query
  })
}

// 查询物料采购属性变更详细
export function getItemMatch(itemId) {
  return request({
    url: '/project/itemMatch/' + itemId,
    method: 'get'
  })
}

// 新增物料采购属性变更
export function addItemMatch(data) {
  return request({
    url: '/project/itemMatch',
    method: 'post',
    data: data
  })
}

// 修改物料采购属性变更
export function updateItemMatch(data) {
  return request({
    url: '/project/itemMatch',
    method: 'put',
    data: data
  })
}

// 删除物料采购属性变更
export function delItemMatch(itemId) {
  return request({
    url: '/project/itemMatch/' + itemId,
    method: 'delete'
  })
}

// 导出物料采购属性变更
export function exportItemMatch(query) {
  return request({
    url: '/project/itemMatch/export',
    method: 'get',
    params: query
  })
}

export function selectWldm(wldm) {
  return request({
    url: '/project/dylList/itmByWldm/' + wldm,
    method: 'get',
  })
}
